package com.atguigu.gmall.common.constant;


public class RedisConstant {

    public static final String SKU_DETAIL = "sku:detail:";
    public static final String SKU_DETAIL_LOCK = "lock:sku:detail:";


    public static final String SKUIDS_BLOOM = "bloom:skuids";
    public static final String SKUIDS_TEMP_LIST = "skuids:list";
    public static final String CACHE_CATEGORYS = "category:all";

    public static final String SKU_HOTCORE_SET = "sku:hotscore";
    public static final String LOGIN_USER = "user:login:"; //拼上令牌
    public static final Integer LOGIN_USER_TIMEOUT = 60*60*24*7; //以秒为单位

    public static final String USER_ID_REQUEST_HEADER = "userid";

    public static final String TEMP_USER_ID_HEADER = "userTempId";
    public static final String CART_KEY_PREFIX = "cart:info:";

    public static final Long CART_SIZE = 200L;
    public static final String ORDER_TRADENO_TOKEN = "order:tradeno:";//order:tradeno:用户id:令牌
    public static final long ORDER_TIMEOUT = 30*60*1000L;

    public static final String SECKILL_GOOD = "seckill:goods:"; //seckill:goods:2022-12-12

    public static final String SECKILL_GOOD_STOCK = "seckill:goods:stock:";
    public static final String SECKILL_CODE_LOCK = "seckill:code:";//seckill:code:秒杀码
    //seckill:goods:stock:2022-12-12:56
}
